package com.hd.tiyu.yuejian.Service;

import com.hd.tiyu.yuejian.JavaBean.Actcate;
import com.hd.tiyu.yuejian.JavaBean.Activity;
import com.hd.tiyu.yuejian.JavaBean.Club;
import com.hd.tiyu.yuejian.JavaBean.ClubIntro;
import com.hd.tiyu.yuejian.JavaBean.Contest;
import com.hd.tiyu.yuejian.JavaBean.Dashi;
import com.hd.tiyu.yuejian.JavaBean.FaTie;
import com.hd.tiyu.yuejian.JavaBean.Master;
import com.hd.tiyu.yuejian.JavaBean.ShaituDetail;
import com.hd.tiyu.yuejian.JavaBean.Tiwen;
import com.hd.tiyu.yuejian.JavaBean.Training;
import com.hd.tiyu.yuejian.JavaBean.Train;
import com.hd.tiyu.yuejian.JavaBean.User;
import com.hd.tiyu.yuejian.JavaBean.VideoList;
import com.hd.tiyu.yuejian.JavaBean.YueJianIntro;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/27.
 */

public interface ListsService {
    @GET("lists/mod/activity")
    Call<List<Activity>>getlistsActivity();

    @GET("lists/mod/master")
    Call<List<Dashi>>getlistsMaster();

    @GET("lists/mod/contest")
    Call<List<Contest>>getlistsContest();

    @GET("lists/mod/club")
    Call<List<Club>>getlistsClub();

    @GET("lists/mod/training")
    Call<List<Training>>getlistsTraining();

    @GET("lists/mod/train")
    Call<List<Train>>getlistsTrain();

    @GET("lists/mod/shaitu/related/1")
    Call<List<ShaituDetail>>getlistsShaireply();

    //http://172.24.10.175/workout/api.php/lists/mod/masterfaq/master_id/1  提问列表
    @GET("lists/mod/masterfaq/master_id/{master_id}")
    Call<List<Tiwen>>getlistsTiWen(
            @Path("master_id") String master_id
    );


    //提问大师 http://172.24.10.175/workout/api.php/create/mod/masterfaq/user_id/432/master_id/1/question/asdfasdfasdfad
    @GET("create/mod/masterfaq/user_id/{user_id}/master_id/{master_id}/question/{question}")
    Call<String>putTiwen(
            @Path("user_id")String user_id,
            @Path("master_id")String master_id,
            @Path("question")String question
    );

    @GET("get/mod/club/id/{id}")
    Call<Club>getClub(
            @Path("id")String id
    );

    @GET("get/mod/club/related/1/id/{id}")
    Call<ClubIntro>getClubIntro(
            @Path("id")String id
    );

    @GET("get/mod/training/id/{id}")
    Call<Training>getTraining(
            @Path("id")String id
    );

    @GET("get/mod/train/id/{id}")
    Call<Train>getTrain(
            @Path("id")String id
    );
    @GET("get/mod/activity/id/{id}")
    Call<Actcate>getActivity(
            @Path("id")String id
    );
    //http://172.24.10.175/workout/api.php/get/mod/master/related/1/id/1/map/mvideo
    @GET("get/mod/master/related/1/id/{id}")
    Call<Dashi>getDashiketang(
            @Path("id")String id
    );

    @GET("get/mod/master/id/{id}")
    Call<Master>getDashi(
            @Path("id")String id
    );

    //晒图详情 http://172.24.10.175/workout/api.php/slists/mod/shaitu/related/1/id/150
    @GET("slists/mod/shaitu/related/1")
    Call<List<ShaituDetail>>getShaireply(
            @Query("id")String id
    );


    @GET("get/mod/master/related/1/")
    Call<VideoList> getVideo(@Query("id") String id, @Query("map") String map);

    @GET("getmine")
    Call<User>getUser(
            @Query("userid") String userId
    );

    @GET("getyuejian")
    Call<YueJianIntro>getIntro();

    //获取俱乐部的收藏状态
    @GET("isExits/mod/fans/")
    Call<Integer> getClubState(@Query("fan_id") String fan_id,
                               @Query("userid") String userid,
                               @Query("fans_type") String fan_type,
                               @Query("SessonID") String SessonID
    );

    //关注俱乐部
    @GET("focus")
    Call<String> gunazhu(         @Query("SessionID") String SessionID,
                                  @Query("userid") String userid,
                                  @Query("fan_id") String fan_id,
                                  @Query("fans_type") String fans_type);
    //取消俱乐部
    @GET("delete")
    Call<String> delete(@Query("mod") String mod,
                        @Query("club_id") String club_id,
                        @Query("user_id") String user_id);
    //发帖列表  http://172.24.10.175/workout/api.php/lists/mod/shaitu/userid/123
    @GET("lists/mod/shaitu/")
    Call<List<FaTie>> getFatie(@Query("userid") String userid);
//http://172.24.10.175/workout/api.php/get/mod/contest/id/1
    @GET("get/mod/contest/")
    Call<Contest> getMatchDetail(
            @Query("id") String id
    );
}
